import { createWebHashHistory } from "vue-router"
import { createRouter, createWebHistory } from "vue-router"

const routes = [
  {
    path: "/",
    redirect: "/home"
  },
  {
    path: "/home",
    name: "home",
    redirect: "/home/container",
    component: () => import("@/views/home.vue"),
    children:[
      {
        path:'container',
        name:'container',
        component:()=>import('@/views/container.vue')
      }
    ]
  }

]
const router = createRouter({
  history: createWebHistory(),
  routes
})
router.beforeEach(async (to) => {
  return true
})
router.afterEach((to) => {
})
export default router
